-- megafunction wizard: %Clocked Video Output v11.0%
-- GENERATION: XML
-- video_out.vhd

-- 

library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;

entity video_out is
	port (
		is_clk    : in  std_logic                     := '0';             --       is_clk_rst.clk
		rst       : in  std_logic                     := '0';             -- is_clk_rst_reset.reset
		is_data   : in  std_logic_vector(9 downto 0)  := (others => '0'); --              din.data
		is_valid  : in  std_logic                     := '0';             --                 .valid
		is_ready  : out std_logic;                                        --                 .ready
		is_sop    : in  std_logic                     := '0';             --                 .startofpacket
		is_eop    : in  std_logic                     := '0';             --                 .endofpacket
		vid_clk   : in  std_logic                     := '0';             --    clocked_video.export
		vid_data  : out std_logic_vector(9 downto 0);                     --                 .export
		underflow : out std_logic;                                        --                 .export
		vid_trs   : out std_logic;                                        --                 .export
		vid_ln    : out std_logic_vector(10 downto 0)                     --                 .export
	);
end entity video_out;

architecture rtl of video_out is
	component alt_vipitc110_IS2Vid is
		generic (
			NUMBER_OF_COLOUR_PLANES       : integer := 3;
			COLOUR_PLANES_ARE_IN_PARALLEL : integer := 1;
			BPS                           : integer := 8;
			INTERLACED                    : integer := 0;
			H_ACTIVE_PIXELS               : integer := 1920;
			V_ACTIVE_LINES                : integer := 1200;
			ACCEPT_COLOURS_IN_SEQ         : integer := 0;
			FIFO_DEPTH                    : integer := 1920;
			CLOCKS_ARE_SAME               : integer := 0;
			USE_CONTROL                   : integer := 0;
			NO_OF_MODES                   : integer := 1;
			THRESHOLD                     : integer := 1919;
			STD_WIDTH                     : integer := 1;
			GENERATE_SYNC                 : integer := 0;
			USE_EMBEDDED_SYNCS            : integer := 0;
			AP_LINE                       : integer := 0;
			V_BLANK                       : integer := 0;
			H_BLANK                       : integer := 0;
			H_SYNC_LENGTH                 : integer := 44;
			H_FRONT_PORCH                 : integer := 88;
			H_BACK_PORCH                  : integer := 148;
			V_SYNC_LENGTH                 : integer := 5;
			V_FRONT_PORCH                 : integer := 4;
			V_BACK_PORCH                  : integer := 36;
			F_RISING_EDGE                 : integer := 0;
			F_FALLING_EDGE                : integer := 0;
			FIELD0_V_RISING_EDGE          : integer := 0;
			FIELD0_V_BLANK                : integer := 0;
			FIELD0_V_SYNC_LENGTH          : integer := 0;
			FIELD0_V_FRONT_PORCH          : integer := 0;
			FIELD0_V_BACK_PORCH           : integer := 0;
			ANC_LINE                      : integer := 0;
			FIELD0_ANC_LINE               : integer := 0
		);
		port (
			is_clk    : in  std_logic                     := 'X';             -- clk
			rst       : in  std_logic                     := 'X';             -- reset
			is_data   : in  std_logic_vector(9 downto 0)  := (others => 'X'); -- data
			is_valid  : in  std_logic                     := 'X';             -- valid
			is_ready  : out std_logic;                                        -- ready
			is_sop    : in  std_logic                     := 'X';             -- startofpacket
			is_eop    : in  std_logic                     := 'X';             -- endofpacket
			vid_clk   : in  std_logic                     := 'X';             -- export
			vid_data  : out std_logic_vector(9 downto 0);                     -- export
			underflow : out std_logic;                                        -- export
			vid_trs   : out std_logic;                                        -- export
			vid_ln    : out std_logic_vector(10 downto 0)                     -- export
		);
	end component alt_vipitc110_IS2Vid;

begin

	video_out_inst : component alt_vipitc110_IS2Vid
		generic map (
			NUMBER_OF_COLOUR_PLANES       => 3,
			COLOUR_PLANES_ARE_IN_PARALLEL => 0,
			BPS                           => 10,
			INTERLACED                    => 1,
			H_ACTIVE_PIXELS               => 720,
			V_ACTIVE_LINES                => 576,
			ACCEPT_COLOURS_IN_SEQ         => 0,
			FIFO_DEPTH                    => 720,
			CLOCKS_ARE_SAME               => 0,
			USE_CONTROL                   => 0,
			NO_OF_MODES                   => 1,
			THRESHOLD                     => 719,
			STD_WIDTH                     => 1,
			GENERATE_SYNC                 => 0,
			USE_EMBEDDED_SYNCS            => 1,
			AP_LINE                       => 23,
			V_BLANK                       => 24,
			H_BLANK                       => 144,
			H_SYNC_LENGTH                 => 0,
			H_FRONT_PORCH                 => 0,
			H_BACK_PORCH                  => 0,
			V_SYNC_LENGTH                 => 0,
			V_FRONT_PORCH                 => 0,
			V_BACK_PORCH                  => 0,
			F_RISING_EDGE                 => 313,
			F_FALLING_EDGE                => 1,
			FIELD0_V_RISING_EDGE          => 311,
			FIELD0_V_BLANK                => 25,
			FIELD0_V_SYNC_LENGTH          => 0,
			FIELD0_V_FRONT_PORCH          => 0,
			FIELD0_V_BACK_PORCH           => 0,
			ANC_LINE                      => 8,
			FIELD0_ANC_LINE               => 321
		)
		port map (
			is_clk    => is_clk,    --       is_clk_rst.clk
			rst       => rst,       -- is_clk_rst_reset.reset
			is_data   => is_data,   --              din.data
			is_valid  => is_valid,  --                 .valid
			is_ready  => is_ready,  --                 .ready
			is_sop    => is_sop,    --                 .startofpacket
			is_eop    => is_eop,    --                 .endofpacket
			vid_clk   => vid_clk,   --    clocked_video.export
			vid_data  => vid_data,  --                 .export
			underflow => underflow, --                 .export
			vid_trs   => vid_trs,   --                 .export
			vid_ln    => vid_ln     --                 .export
		);

end architecture rtl; -- of video_out
-- Retrieval info: <?xml version="1.0"?>
--<!--
--	Generated by Altera MegaWizard Launcher Utility version 1.0
--	************************************************************
--	THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
--	************************************************************
--	Copyright (C) 1991-2012 Altera Corporation
--	Any megafunction design, and related net list (encrypted or decrypted),
--	support information, device programming or simulation file, and any other
--	associated documentation or information provided by Altera or a partner
--	under Altera's Megafunction Partnership Program may be used only to
--	program PLD devices (but not masked PLD devices) from Altera.  Any other
--	use of such megafunction design, net list, support information, device
--	programming or simulation file, or any other related documentation or
--	information is prohibited for any other purpose, including, but not
--	limited to modification, reverse engineering, de-compiling, or use with
--	any other silicon devices, unless such use is explicitly licensed under
--	a separate agreement with Altera or a megafunction partner.  Title to
--	the intellectual property, including patents, copyrights, trademarks,
--	trade secrets, or maskworks, embodied in any such megafunction design,
--	net list, support information, device programming or simulation file, or
--	any other related documentation or information provided by Altera or a
--	megafunction partner, remains with Altera, the megafunction partner, or
--	their respective licensors.  No other licenses, including any licenses
--	needed under any third party's intellectual property, are provided herein.
---->
-- Retrieval info: <instance entity-name="alt_vip_itc" version="11.0" >
-- Retrieval info: 	<generic name="NUMBER_OF_COLOUR_PLANES" value="3" />
-- Retrieval info: 	<generic name="COLOUR_PLANES_ARE_IN_PARALLEL" value="0" />
-- Retrieval info: 	<generic name="BPS" value="10" />
-- Retrieval info: 	<generic name="INTERLACED" value="1" />
-- Retrieval info: 	<generic name="H_ACTIVE_PIXELS" value="720" />
-- Retrieval info: 	<generic name="V_ACTIVE_LINES" value="576" />
-- Retrieval info: 	<generic name="ACCEPT_COLOURS_IN_SEQ" value="0" />
-- Retrieval info: 	<generic name="FIFO_DEPTH" value="720" />
-- Retrieval info: 	<generic name="CLOCKS_ARE_SAME" value="0" />
-- Retrieval info: 	<generic name="USE_CONTROL" value="0" />
-- Retrieval info: 	<generic name="NO_OF_MODES" value="1" />
-- Retrieval info: 	<generic name="THRESHOLD" value="719" />
-- Retrieval info: 	<generic name="STD_WIDTH" value="1" />
-- Retrieval info: 	<generic name="GENERATE_SYNC" value="0" />
-- Retrieval info: 	<generic name="USE_EMBEDDED_SYNCS" value="1" />
-- Retrieval info: 	<generic name="AP_LINE" value="23" />
-- Retrieval info: 	<generic name="V_BLANK" value="24" />
-- Retrieval info: 	<generic name="H_BLANK" value="144" />
-- Retrieval info: 	<generic name="H_SYNC_LENGTH" value="0" />
-- Retrieval info: 	<generic name="H_FRONT_PORCH" value="0" />
-- Retrieval info: 	<generic name="H_BACK_PORCH" value="0" />
-- Retrieval info: 	<generic name="V_SYNC_LENGTH" value="0" />
-- Retrieval info: 	<generic name="V_FRONT_PORCH" value="0" />
-- Retrieval info: 	<generic name="V_BACK_PORCH" value="0" />
-- Retrieval info: 	<generic name="F_RISING_EDGE" value="313" />
-- Retrieval info: 	<generic name="F_FALLING_EDGE" value="1" />
-- Retrieval info: 	<generic name="FIELD0_V_RISING_EDGE" value="311" />
-- Retrieval info: 	<generic name="FIELD0_V_BLANK" value="25" />
-- Retrieval info: 	<generic name="FIELD0_V_SYNC_LENGTH" value="0" />
-- Retrieval info: 	<generic name="FIELD0_V_FRONT_PORCH" value="0" />
-- Retrieval info: 	<generic name="FIELD0_V_BACK_PORCH" value="0" />
-- Retrieval info: 	<generic name="ANC_LINE" value="8" />
-- Retrieval info: 	<generic name="FIELD0_ANC_LINE" value="321" />
-- Retrieval info: 	<generic name="AUTO_IS_CLK_RST_CLOCK_RATE" value="-1" />
-- Retrieval info: 	<generic name="AUTO_DEVICE_FAMILY" value="Cyclone IV E" />
-- Retrieval info: </instance>
-- IPFS_FILES : video_out.vho
-- RELATED_FILES: video_out.vhd, alt_vipitc110_IS2Vid.v, alt_vipitc110_IS2Vid_sync_compare.v, alt_vipitc110_IS2Vid_calculate_mode.v, alt_vipitc110_IS2Vid_control.v, alt_vipitc110_IS2Vid_mode_banks.v, alt_vipitc110_IS2Vid_statemachine.v, alt_vipitc110_common_fifo.v, alt_vipitc110_common_generic_count.v, alt_vipitc110_common_to_binary.v, alt_vipitc110_common_sync.v, alt_vipitc110_common_trigger_sync.v, alt_vipitc110_common_sync_generation.v, alt_vipitc110_common_frame_counter.v, alt_vipitc110_common_sample_counter.v
